#ifndef MAINWINDOW_H
#define MAINWINDOW_H

#include <QWidget>
#include "xplreader.h"

class MediaPlayer;

namespace Ui {
class MainWindow;
}

class MainWindow : public QWidget
{
    Q_OBJECT

public:
    explicit MainWindow(QWidget *parent = 0);
    ~MainWindow();

    void setInfo(QString info);

    void AddEntry(xplEntry* entry);
protected:
     void mouseMoveEvent(QMouseEvent *event);
     void mousePressEvent(QMouseEvent *event);

private slots:
     void on_pushButton_clicked();

     void on_dial_valueChanged(int value);

     void on_comboBox_currentIndexChanged(int index);

     void on_cmdAdd_clicked();

     void on_MainWindow_destroyed();

protected:
     void timerEvent ( QTimerEvent * event );
private:
    Ui::MainWindow *ui;
    QPoint dragPosition;
private:
    MediaPlayer   *m_player;
    XplReader     *m_playlist;
    int            m_timerID;
    int            m_curIndex;
};

#endif // MAINWINDOW_H
